package com.registration.service;

import com.registration.bean.ReportBean;
import com.registration.mapper.ReportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    private ReportMapper reportMapper;

    @Override
    public List<ReportBean> getReports(Integer patientId, String username,String patientName, String checkTime, String reportType) {
        return reportMapper.selectReports(patientId,username,patientName, checkTime, reportType);
    }

    @Override
    public ReportBean getReportById(Integer reportId) {
        return reportMapper.selectReportById(reportId);
    }
}
